import request from "~/utils/request";

export const  addFriend=(userId,friendUserId)=>{
  return request({
    url: '/friend/addFriend',
    method:'post',
    data:{
      userId,
      friendUserId
    }
  })

}
export const  getFriendListByMyId=(status)=>{
  return request({
    url: `/friend/getFriendListByMyId/${status}`,
    method:'get',
  })

}
export const removeFriendById = (friendId) => {
  return request({
    url: `/friend/removeFriendById/${friendId}`,
    method: 'delete',
  });
};
export const  approveOrrejectFriend=(friendId,status)=>{
  return request({
    url: `/friend/approveOrrejectFriend/${friendId}/${status}`,
    method:'put',
  })

}
